package com.scienjus.smartqq.model;

/**
 * 最近会话.
 *
 * @author ScienJus
 * @author <a href="http://88250.b3log.org">Liang Ding</a>
 * @date 2015/12/24.
 */
public class Recent {
    
    private long uin;
    
    // 0:好友、1:群、2:讨论组
    private int type;
    
    public long getUin() {
        return uin;
    }
    
    public void setUin(long uin) {
        this.uin = uin;
    }
    
    public int getType() {
        return type;
    }
    
    public void setType(int type) {
        this.type = type;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (obj instanceof Recent) {
            Recent o = (Recent) obj;
            return type == o.getType() && uin == o.getUin();
        }
        return false;
    }
}
